package providev.learn.imagina.tema2_3_ampliacion;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class BReceiverA extends BroadcastReceiver{
        @Override
        public void onReceive(Context context, Intent intent) {
                Intent i = new Intent();
                i.setAction("providev.learn.imagina.tema2.ACTIVITYA");
                //Permite lanzar una Activity fuera del contexto original
                i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                context.startActivity(i);                
        }
}